<script>on mouseUpget the value of the clickLineif first char of it is " " thendelete first char of itfind it in field "Subject"else find it in field "Group"end mouseUpon mouseEnterHCBalloon "Click a line to go to the group or topic."end mouseEnter</script>
<script>on openCardif the marked of this card thenunmark this cardupdateIndexend ifend openCardon updateIndexsort by sortOrder()lock screenpush cardput empty into lastSubjectput empty into lastGroupput empty into cd field "Index"repeat for number of cards - 1set cursor to busygo to next cardget field "Group"if it is not lastGroup thenput it into lastGroupput empty into lastSubjectput it & return after cd field "Index" of card "Index"set textStyle of last line of cd field "Index" of card "Index" to boldend ifget field "Subject"if first word of it is "Re:" then delete first word of itif it is not lastSubject thenput it into lastSubjectput " " & it & return after cd field "Index" of card "Index"end ifend repeatpop cardunlock screenend updateIndex</script>